<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:if test="#session.loginUserBean==null">
	<form id="loginForm" action='<s:url action="login" namespace="/" />'
		method="post">
		<table width="100%" height="113" border="0" cellspacing="0"
			cellpadding="0">
			<tr>
				<td>&nbsp;</td>
				<td width="367" style="background: url(images/dlzc.png) no-repeat"
					valign="top">
					<table width="359" height="105" border="0" cellspacing="0"
						cellpadding="0">
						<tr>
							<td height="2" colspan="6" style="font-size: 1px;">&nbsp;</td>
						</tr>
						<tr>
							<td width="77" height="22"
								style="text-indent: 15px; color: #666;">用户名</td>
							<td width="134" colspan="2"><input id="loginName"
								name="loginName" type="text" class="sr" />
							</td>
							<td width="19" style="color: #666;"><input name=""
								type="checkbox" disabled="disabled" value="" />
							</td>
							<td width="72" style="color: #666;">自动登录</td>
							<td style="color: #666;">找回密码</td>
						</tr>
						<tr>
							<td height="22" style="text-indent: 15px; color: #666;">密码</td>
							<td colspan="2"><input id="loginPwd" name="loginPwd"
								type="text" class="sr" />
							</td>
							<td colspan="2"><input name="dl" type="submit" value=""
								class="dl" />
							</td>
							<td style="font-weight: bold;"><a href="register.jsp">注册</a>
							</td>
						</tr>
						<tr>
							<td height="22" style="text-indent: 15px; color: #666;">验证码</td>
							<td width="64"><input id="verifyCode" name="verifyCode"
								type="text" class="sr"
								style="width: 64px; background: url(images/yzmsr.jpg) no-repeat;" />
							</td>
							<td width="62" style="text-align: left;"><img id="imgCode"
								src="<s:url action="vCode" namespace="/" />"
								onclick="changeImg()" />
							</td>
							<td colspan="2" style="cursor: pointer; color: #FF4B4B;"
								onclick="changeImg()">换一张</td>
							<td style="font-weight: bold;">&nbsp;</td>
						</tr>
						<tr>
							<td height="9" colspan="2" style="font-size: 1px;">&nbsp;</td>
						</tr>
					</table></td>
			</tr>
		</table>
	</form>
</s:if>
<s:if test="#session.loginUserBean!=null">
	<table width="100%" height="77" border="0" cellspacing="0"
		cellpadding="0" style="width: 240px; float: right;">
		<tr>
			<td width="20" height="39"><img src="images/xr2.png" />
			</td>
			<td width="98"
				style="font-weight: bold; font-size: 16px; text-align: center;">
				<s:if test="#session.loginUserBean.userDetail.nickName!=null">
					<s:property value="#session.loginUserBean.userDetail.nickName" />
				</s:if> <s:if test="#session.loginUserBean.userDetail.nickName==null">
					<s:property value="#session.loginUserBean.loginName" />
				</s:if></td>
			<td width="44" style="text-align: center">退出</td>
			<td width="78" rowspan="2"><img src="images/xr.png" />
			</td>
		</tr>
		<tr>
			<td height="38" width="20">&nbsp;</td>
			<td colspan="2" style="text-align: center;"><a
				href="user_info.jsp">个人中心</a>&nbsp;&nbsp;&nbsp;我的帖子</td>
		</tr>
	</table>
</s:if>